<?php
$this->breadcrumbs = array(
    'Phone Books',
);
?>
<div id="content" class="clearfix">
    <div id="side-content-left">
        <div class="simple-con tcenter">Another content layout! This time the sidebar is on the left side.</div>
        <h3>Serach Article</h3>
        <div class="body-con">
            <form class="pos-rel" name="search-form" id="search-form" method="post" action="javascript: void(0)">
                <input type="text" class="search" onfocus="this.value = '';" value="Search.." name="search-user" id="search-user">
                <input type="submit" class="search" name="search-btn" id="search-btn" value="SEARCH">
            </form>
        </div>
        <?php $this->widget('ArticleMenu'); ?>
    </div>
    <div id="main-content-right">
        <h1>All Phone Books</h1>    
        <?php
        $this->widget('zii.widgets.grid.CGridView', array(
            'pager' => array(
                'cssFile' => false,
                'header' => '',
                'htmlOptions' => array('class' => 'pagination tcenter')
            ),
            'id' => 'main-content',
            'pagerCssClass' => '',
            'htmlOptions' => array('class' => ''),
            'dataProvider' => $model->search(),
            'columns' => array(
                'id',
                'name',
                array('name'=>'category', 'value'=>'Lookup::model()->item("PhoneCategory","$data->category")'),
                'phone',
                'qq',
                array(
                    'class' => 'CButtonColumn',
                ),
            ),
        ));
        ?>
    </div>
</div>



